package main

type Animal struct {
	Age int
}

func (self Animal) GetAge() int {
	return self.Age
}

func (self *Animal) Grow() {
	self.Age++
}

func main() {
	animal:=Animal{Age: 1}//age->1
	animal.Grow()//age->2
	animal.GetAge()
}
